package com.bto.solar.work.controller;

import com.bto.solar.work.common.R;
import com.bto.solar.work.service.BtoCustomerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * 客户信息 前端控制器
 * </p>
 *
 * @author adrian
 * @since 2023-08-09
 */
@RestController
@RequestMapping("/customer")
public class CustomerController {
    @Autowired
    private BtoCustomerService btoCustomerService;
    /**
    * 查询客户是否已经签署法大大授权协议
    */
    @GetMapping("/fdd-signed")
    public R getCustomerFddSigned(@RequestParam String idNumber) {
        return R.ok(btoCustomerService.getCustomerFddSignedInfo(idNumber));
    }
}
